<template>
    <div class="box flex flex-column"
         :style="{ width, height, left, top }">
        <div class="header flex">
            <div class="left">
                <span>{{ title }}</span>
            </div>
            <div class="right"></div>
        </div>
        <div class="content">
            <slot></slot>
        </div>
    </div>
</template>

<script>
export default {
    props: {
        title: {},
        width: {
            default: '430px',
        },
        height: {
            default: '310px',
        },
        left: {},
        top: {},
    },
    components: {},
    data() {
        return {}
    },
    computed: {},
    methods: {},
    created() {},
    mounted() {},
}
</script>
<style lang='less' scoped>
.box {
    position: absolute;
    .header {
        cursor: pointer;
        width: 100%;
        height: 27px;
        .left {
            width: 352px;
            height: 27px;
            background: url(../assets/img/home/header-1.png);
            span {
                font-weight: bold;
                font-size: 18px;
                position: absolute;
                left: 28px;
                letter-spacing: 3px;
            }
        }
        .right {
            flex: 1;
            height: 27px;
            background-image: url(../assets/img/home/header-2.png);
            background-repeat: repeat;
        }
    }
    .content {
        padding: 10px 10px 0px 10px;
        width: 100%;
        flex: 1;
        background-color: rgba(0, 16, 64, 0.3);
    }
}
</style>